﻿/**  版本信息模板在安装目录下，可自行修改。
* Company_Department.cs
*
* 功 能： N/A
* 类 名： Company_Department
*
* Ver    变更日期             负责人  变更内容
* ───────────────────────────────────
* V0.01  2014/5/20 11:17:00   N/A    初版
*
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
*┌──────────────────────────────────┐
*│　此技术信息为本公司机密信息，未经本公司书面同意禁止向第三方披露．　│
*│　版权所有：动软卓越（北京）科技有限公司　　　　　　　　　　　　　　│
*└──────────────────────────────────┘
*/
using System;
using ARS.Control.Custom.Entity.Fields;
namespace NetWebControl.ControlTest.OA
{
    /// <summary>
    /// 部门
    /// </summary>
    [Serializable]
    public partial class Company_Department
    {
        public Company_Department()
        { }
        #region Model
        private int _company_department_id;
        private string _dname;
        private DateTime? _addtime;
        private int? _specific_leader_id;
        private int _Dchild_id;
        private string _note;
        private string _dtext1;
        private string _dtext2;
        private int? _company_info_id;
        /// <summary>
        /// 部门编号
        /// </summary>
        [KeyField()]
        public int Company_Department_Id
        {
            set { _company_department_id = value; }
            get { return _company_department_id; }
        }
        /// <summary>
        /// 部门名称
        /// </summary>
        [CharField(Verbose_Name = "部门名称", IsAllowBlank = false)]
        public string Dname
        {
            set { _dname = value; }
            get { return _dname; }
        }
        /// <summary>
        /// 添加时间
        /// </summary>
        [DateTimeAutoField()]
        public DateTime? AddTime
        {
            set { _addtime = value; }
            get { return _addtime; }
        }
        /// <summary>
        /// 分管领导编号
        /// </summary>


        [ForeignKeyConfig(TableName = "Users", DataTextField = "UserName", KeyField = "Users_Id")]
        [ForeignKeyField(Verbose_Name = "分管领导")]
        public int? Specific_Leader_Id
        {
            set { _specific_leader_id = value; }
            get { return _specific_leader_id; }
        }
        /// <summary>
        /// 子部门编号
        /// </summary>
        public int Dchild_Id
        {
            set { _Dchild_id = value; }
            get { return _Dchild_id; }
        }
        /// <summary>
        /// 记录
        /// </summary>
        public string Note
        {
            set { _note = value; }
            get { return _note; }
        }
        /// <summary>
        /// 预留1
        /// </summary>
        public string DText1
        {
            set { _dtext1 = value; }
            get { return _dtext1; }
        }
        /// <summary>
        /// 预留2
        /// </summary>
        public string DText2
        {
            set { _dtext2 = value; }
            get { return _dtext2; }
        }
        /// <summary>
        /// 公司编号
        /// </summary>
        //[ForeignKeyConfig(TableName = OA.Const.Company_Info.COMPANY_INFO, DataTextField = OA.Const.Company_Info.COM_NAME, KeyField = OA.Const.Company_Info.COMPANY_INFO_ID)]
        //[ForeignKeyField(Verbose_Name = "公司名称")]
        [WebsiteField()]
        public int? Company_Info_Id
        {
            set { _company_info_id = value; }
            get { return _company_info_id; }
        }
        #endregion Model

    }
}

